
import { createRouter, createWebHistory } from "vue-router"

const routes = [
  {
    path: "/",
    name: "Home",
    meta: {
      title: "首页"
    },
    component: () => import("@/views/home/index.vue"),
  },
  {
    path: "/component",
    name: "Component",
    meta: {
      title: "组件"
    },
    component: () => import("@/views/component/index.vue"),
  },
  {
    path: "/template",
    name: "Template",
    meta: {
      title: "模板"
    },
    component: () => import("@/views/template/index.vue"),
  },
  {
    path: "/about",
    name: "About",
    meta: {
      title: "关于"
    },
    component: () => import("@/views/about/index.vue"),
  }
]
const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router